package com.tianji.contract.controller;


import com.tianji.common.Result;
import com.tianji.contract.service.ParkBillService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 陈佳
 * @since 2024-10-15
 */
@RestController
@RequestMapping("/park-bill")
@RequiredArgsConstructor
@Api(value = "账单api")
public class ParkBillController {

    private final ParkBillService parkBillService;

    @GetMapping("crearteBill")
    @ApiModelProperty(value = "生成账单下单待支付信息")
    public Result crearteBill(@RequestParam("id")Long id){
        return parkBillService.crearteBill(id);
    }
}

